package com.pan.show.record.impl;

import com.pan.show.record.Record;

import java.util.StringJoiner;

public class CommandLineRecord implements Record<String> {

    private StringJoiner content;

    public CommandLineRecord() {
        this.content = new StringJoiner("\n");
    }

    @Override
    public void setContent(String content) {
        this.content.add(content);
    }

    @Override
    public void display() {
        System.out.println(content);
    }

    @Override
    public void close() {

    }
}
